﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Sample
{
    [Table("person")]
    public class Person
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("id")]
        public long Id { get; set; }

        [Column("name")]
        public string Name { get; set; }

        [Column("age")]
        public int Age { get; set; }

        [Column("birthday")]
        public DateTime BirthDay { get; set; }

        [Column("wedding_day")]
        public DateTime? WeddingDay { get; set; }
    }

    public class PersonDto
    {
        public long Id1 { get; set; }

        public string Name1 { get; set; }

        public int Age1 { get; set; }

        public DateTime BirthDay1 { get; set; }

        public DateTime? WeddingDay1 { get; set; }
    }
}